<?php

namespace app\admin\controller;

use app\admin\model\Category;
use app\admin\model\Tag;

class OverView
{
    public function index()
    {
        $views = Category::with('tags')->order('id', 'desc')->select();
//        return $views;
        return view('OverView/index',compact('views'));
    }
}